package glossos.tree.factory;

import glossos.tree.Node;
import java.util.concurrent.atomic.AtomicLong;

public class SimpleNodeFactory extends AbstractNodeFactory {

    private static AtomicLong nextId = new AtomicLong(0L);

    public Node create(String word, Integer frequency) {
        return new Node(nextId.incrementAndGet(), word, frequency);
    }
}
